package com.atguigu.order.orderFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 韩先楚
 */
@FeignClient(name = "seata-account")
public interface AccontFeignClient {

    //扣减账户余额
    @GetMapping("/debit")
    public String debit(@RequestParam("userId") String userId,
                        @RequestParam("money") int money);


}
